package com.lichuang.fruitvarietysm.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 商品评价表
 * </p>
 *
 * @author shuaihang
 * @since 2019-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_evaluate")
@ApiModel(value = "GoodsEvaluate对象", description = "商品评价表")
public class GoodsEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评价表id")
    @TableId(value = "evaluate_id", type = IdType.AUTO)
    private Integer evaluateId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单号")
    private Long orderNo;

    @ApiModelProperty(value = "商品评分值，最高5分最低1分")
    @TableField("scoreValue")
    private Integer scoreValue;

    @ApiModelProperty(value = "商品评价的文字")
    private String goodsEvaluate;

    @ApiModelProperty(value = "商品评价的图片")
    @TableField("goods_evaluateImg")
    private String goodsEvaluateimg;

    @ApiModelProperty(value = "是否匿名。0:为不匿名，1：为匿名")
    @TableField("isAnonymity")
    private Integer isAnonymity;

    @ApiModelProperty(value = "物流服务的值，最高为5颗星，最低为1颗")
    @TableField("logisticsValue")
    private Integer logisticsValue;

    @ApiModelProperty(value = "服务态度的值，最高5颗星，最低1颗星")
    @TableField("serviceValue")
    private Integer serviceValue;

    @ApiModelProperty(value = "创建本商品评价的时间")
    @TableField("createTime")
    private LocalDate createTime;


}
